home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
BORL_TIP
/
TI1000
/
TI1259.ASC
< prev
next >
Wrap
Text File
|
1993-02-10
|
1KB
|
67 lines
PRODUCT : Borland Pascal NUMBER : 1259
VERSION : 7.0
OS : DOS
DATE : February 10, 1993 PAGE : 1/1
TITLE : Patch for the STDDLG Unit
When using the TFileDialog object with Borland Pascal 7.0, users
may find that errors occur when navigating through subdirectories
using the "..\" symbol in the files listbox.
The problem lies in the STDDLG.PAS file which normally resides in
the \BP\RTL\TV subdirectory. After opening the file, search on
the word RelativePath to find the following code:
function RelativePath(var S: PathStr): Boolean;
begin
S := LTrim(RTrim(S));
RelativePath := not (S <> '') and ((S[1] = '\') or (S[2] =
':'));
end;
To resolve the problem, change the fourth line so that it
looks like this:
RelativePath := not ((S <> '') and ((S[1] = '\') or (S[2] =
':')));
When you are done, you can copy your new TPU or TPP file into the
\BP\UNITS subdirectory.
This problem only appears in Borland Pascal 7.0. STDDLGS
shipping with Turbo Pascal 7.0 is correct.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.